#----------------------------------------
# Readme
#----------------------------------------

Replication files for: Understanding the Sensitivity of Party Identification Questions in Polarized African Contexts

Authors: Justine Davis and Martha Wilfarht

This document describes the contents of the replication archive that reproduces the results in the paper. All files were compiled using Windows 10 and R version 4.0.1.

The R packages used for analysis are listed at the beginning of the script.

All data included in this replication archive (excluding Afrobarometer_Election_Data.csv, details below) was originally collected by the authors, who has the right to share it.

Other data used:

Afrobarometer (R5-7):
The R code requires the merged multi-country data sets from Afrobarometer Rounds 5-7 
Available at www.afrobarometer.org

V-DEM: 
The R code requires V11 of the Varieties of Democracy Dataset which can be downloaded via GitHub (code provided) or from here: https://v-dem.net/data/the-v-dem-dataset/ 

Afrobarometer_Election_Data:
The election date data which is merged with the Afrobarometer rounds was provided by : Choi, Donghyun Danny, Benjamin Laughlin and Anna E Schultz. 2021. “Mobile communication technology and national identity in Sub-Saharan Africa.” OSF Preprints. June 17.


#----------------------------------------
# Archive contents
#----------------------------------------

1. Davis_Wilfahrt_SensitiveQs_replication.R - R script that reproduces the results of the paper and appendix.

2. Enumerators_Data_SensitiveQs.csv - CSV containing the data required to reproduce the results from the paper and appendix for the enumerators survey.

3. Full_Qual_Demographic_Data.csv - CSV containing data from the qualitative interviews and focus groups to reproduce tables in the appendix.

4. Qualitative_Interview_Data.csv - CSV containing data from the qualitative interviews to reproduce tables in the appendix. 

5. Afrobarometer_Election_Data.csv - CSV containing election date information to reproduce analyses in the appendix.

Code_book.pdf - codebook for variables included in 2-5
